package net.gooduo.spring_boot_template.exception;

import lombok.Getter;

@Getter
public class HttpException extends RuntimeException {
    private Integer code;
    private String msg;

    public HttpException (HttpExceptionEnum e) {
        super(e.getMsg());
        this.code = e.getCode();
        this.msg = e.getMsg();
    }
}
